public class Student{
    public String name;
    public int age;
    public double score;
    //public static String classRoom = "一班";
    private static String classRoom = "一班";

    public Student(String name, int age, double score) {
        this.name = name;
        this.age = age;
        this.score = score;
    }
    public void doclass(){
        System.out.println("上课");
    }
    public static String getClassRoom(){
        //age+=1;
        //doclass();
        return classRoom;
    }
    public static void main(String[] args) {
        System.out.println(Student.classRoom);
        Student s1 = new Student("张三",15,78.5);
        System.out.println(s1.classRoom);
        System.out.println(Student.getClassRoom());
    }

}
//import java.sql.SQLOutput;
//
//public class Computer {
//    private String cpu;
//    public String screen;
//    String brand;
//
//    //构造方法
//    public Computer(String cpu, String screen, String brand) {
//        this.cpu = cpu;
//
//        this.screen = screen;
//        this.brand = brand;
//    }
//
//    //提供公共方法
//    public String getCpu() {
//        return cpu;
//    }
//    public void setCpu(String cpu) {
//        this.cpu = cpu;
//    }
//    public String getBrand() {
//        return brand;
//    }
//    public void setBrand(String brand) {
//        this.brand = brand;
//    }
//}
